package com.bawei.reflection_annotation.room;
@MyTable(tableName = "student")
public class Student {
    @MyIds(auto = true)
    @MyField(fieldName = "id",type = MyType.INT,length = 50)
    private int id;
    @MyField(fieldName = "username",type = MyType.TEXT,length = 50)
    private String  username;
    @MyField(fieldName = "age",type = MyType.INT,length = 10)
    private String age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Student(String username, String age) {
        this.username = username;
        this.age = age;
    }
}
